import request from "@/utils/request.js";

const api_prefix = "/user/goods/log";

export function getWaitOrders(pageNo,pageSize,storeId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/backend/wait/order/${pageNo}/${pageSize}/${storeId}`,
    method: "GET",
  });
}

export function getTakeGoods(pageNo, pageSize, storeId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/backend/wait/order/take/${pageNo}/${pageSize}/${storeId}`,
    method: "GET",
  });
}

export function getReceivedGoods(pageNo, pageSize, storeId) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/backend/wait/order/received/${pageNo}/${pageSize}/${storeId}`,
    method: "GET",
  });
}

export function toDoDelivery(id) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/backend/wait/order/delivery/${id}`,
    method: "POST",
  });
}
